Skip to main content

Constants Node

The Constants Node gets a trigger to the Input Port, declares values of elements, objects, or arrays, and sends the values to the Output Ports.

Constants Node
Constants Node

The example above shows the Constants Node defining the following values:

  • integer number equal 42;
  • float number equal 3.1415;
  • boolean value true;
  • object having 2 key-value pairs: {"XYZ" : "111", "ABC" : "abc"};
  • string getting value Hello, World!;
  • array having 3 key-value elements {"ABC" : "1000", "DEF" : "0", "GHI" : "10"}.

The number of Output Ports of the Constants Node in not limited.

Click the + button in the Sidebar to add new elements.

The following examples demonstrate how different values assigning to the boolean Output Port of the Constants Node are treated:

  • False or false are treated as False;
  • True or true are treated as True;
  • empty is treated as False;
  • 0 is treated as False.
  • Hello, World! is treated as True.